<h1><u>Institution Search Result</u></h1><br/>

<?php
if (count($search_list) == 0) {
    echo "<h1 align=center>No Result Found</h1>";
} else {
?>
    <a href="<?php echo site_url('institution_selection/my_institution'); ?>"><button>My Institutions</button></a>
<?php
    $attributes = array('id' => 'insForm', 'name' => 'insForm');
    echo form_open('institution_selection/selInstitution', $attributes);
    $markAll = array(
        'name' => 'checkAll',
        'id' => 'checkAll',
        'content' => 'Mark All/Un-mark All'
    );
    $selectInsConfirm = array(
        'name' => 'selectInsConfirm',
        'id' => 'selectInsConfirm',
        'content' => 'Select Institution'
    );
    $url = site_url('institution_selection/selInstitution');
    echo form_hidden('url4', $url);
?>
    <table style="font-size:12px" cellpadding="0" cellspacing="0" border="0" class="display" id="dataSortTable">
        <thead>
            <tr>
                <th></th>
                <th>Institution Name</th>
                <th>Type</th>
                <th>Address</th>
                <th>Country</th>
                <th>Description</th>
                <th>Course Available</th>s
            </tr>
        </thead>
        <tbody>
        <?php
        foreach ($search_list as $row) {
            $insID = array(
                'name' => 'institution_id[]',
                'id' => 'institution_id',
                'value' => $row->institution_id
            );
        ?>
            <tr class="odd gradeA">
                <td width="20px"><?php echo form_checkbox($insID); ?></td>
                <td id="insName"><?php echo $row->institution_name; ?></td>
                <td><?php echo $row->institution_type_desc; ?></td>
                <td><?php echo $row->institution_address; ?></td>
                <td><?php echo $row->country_name; ?></td>
                <td id="desc" onclick="window.open('<?php echo site_url('institution_selection/showDesc/'.$row->institution_id) ?>','Ratting','width=550,height=170,0,status=0,location=0,left=200px, top=300px'); this.style.color='blue'; this.style.textDecoration='none';"
                    onmouseover="this.style.color='grey'; this.style.textDecoration='underline';"    
                    onmouseout="this.style.textDecoration='none';"><?php echo substr($row->institution_description, 0, 45);
                echo "..." ?></td>
                <td>Click Here</td>
        </tr>
        <?php } ?>
    </tbody>
</table>
<center>
    <?php     echo form_button($markAll);
              echo form_button($selectInsConfirm);
    ?>
</center>
<?php echo form_close(); ?>
<div id="selectList"> </div>
<?php }?>
<span style="visibility:hidden;">.</span>
